<template>
  <div class="container">
    <div class="img">
      <img :src="RightData.imgUrl" alt="imgUrl" />
    </div>
    <div class="introduce">
      <h2>{{ RightData.title }}</h2>
      <p>
        {{ RightData.content }}
      </p>
      <button class="btn">了解详情<i class="el-icon-right"></i></button>
    </div>
    <div class="background-img">
      <ul v-for="index1 in 10" :key="index1">
        <li v-for="index in 8" :key="index"></li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "SchemeLeft",
  props: { RightData: Object },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.container {
  margin: 150px auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1200px;
  .img {
    z-index: 1;
    border-radius: 15px;
    box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.5);
    width: 600px;
    height: 350px;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .img:hover {
    cursor: pointer;
    transition: all 0.6s;
    transform: translateY(-3px);
  }
  .introduce {
    margin: 20px 40px;
    display: flex;
    flex-direction: column;
    width: 400px;
    h2 {
      font-size: 31px;
      font-weight: 600;
      color: #31c46c;
    }
    p {
      margin: 50px 0;
      font-size: 15px;
      color: #8c8c8cff;
      font-weight: 400;
      line-height: 1.8;
    }
    .btn {
      box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.4);
      width: 150px;
      height: 50px;
      border-radius: 25px;
      border: 0px;
      cursor: pointer;
      font-weight: 550;
      background: #31c46c;
      color: #fff;
      .el-icon-right {
        font-size: 20px;
        margin-left: 15px;
      }
    }
    .btn:hover {
      transition: all 0.6s;
      transform: translateY(-3px);
      box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.5);
    }
  }
  .background-img {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    ul {
      display: flex;
      li {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        margin: 8px;
        background-color: #31c46c;
      }
    }
  }
}
</style>
